<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('客服不满意率统计列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>客服姓名：</label>
                                <input type="text" name="kfname"/>
                            </li>

                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:mytongji:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:mytongji:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:mytongji:remove')}]];
        var prefix = ctx + "system/mytongji";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "客服不满意率统计",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'myid',
                    title: '关键字',
                    visible: false
                },
                {
                    field: 'kfname',
                    title: '客服姓名'
                },
                {
                    field: 'sessionsum',
                    title: '会话总数'
                },
                {
                    field: 'pjsum',
                    title: '参与评价数'
                },
                {
                    field: 'pjlv',
                    title: '参评率'
                },
                {
                    field: 'my',
                    title: '满意'
                },
                {
                    field: 'mylv',
                    title: '满意率'
                },
                {
                    field: 'nomy',
                    title: '不满意'
                },
                {
                    field: 'nomylv',
                    title: '不满意率'

                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>